package com.shop.seller.service;

import java.util.List;
import java.util.Map;

import com.shop.domain.PageResult;
import com.shop.model.Brand;
/**
 * 品牌接口
 * @author Y
 *
 */
public interface BrandService {
	/**
	 * 查找全部品牌
	 * @return
	 * @throws Exception
	 */
	List<Brand> findAll() throws Exception;
	/**
	 * 更新品牌
	 * @param brand
	 * @return
	 * @throws Exception
	 */
	boolean updateById(Brand brand) throws Exception;
	/**
	 * 添加品牌
	 * @param brand
	 * @return
	 * @throws Exception
	 */
	boolean insert(Brand brand) throws Exception;
	/**
	 * 删除品牌
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	boolean deleteByIds(List<Long> ids) throws Exception;
	/**
	 * 按品牌名模糊查找品牌
	 * @param name
	 * @return
	 * @throws Exception
	 */
	List<Brand> findLikeName(String name) throws Exception;
	/**
	 * 根据模板id查找模板关联的品牌
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public String findBrands(String typeTemplateId) throws Exception;
	/**
	 * 查询当前页记录数
	 * @param map
	 * @return
	 * @throws Exception
	 */
	List<Brand> findByPage(Map<String,String> map) throws Exception;
	/**
	 * 查询总记录数
	 * @param pageNum
	 * @param pageSize
	 * @param name
	 * @return
	 * @throws Exception 
	 */
	PageResult findPage(Integer pageNum,Integer pageSize,String name) throws Exception;	
}
